package com.ctsi.organise.entity;

import com.ctsi.commons.util.id.UUIDGenerator;

import java.io.Serializable;

/**
 * @author zhangjw
 * @className PersonInfoNode
 * @description 人员图谱节点信息
 * @date 2019/3/30 16:15
 **/
public class PersonInfoNode implements Serializable {
    /**
     * 主键
     */
    private String id;

    private String structId;
    /**
     * 父节点ID
     */
    private String parentId;
    /**
     * 人员ID
     */
    private String personId;
    /**
     * 人员姓名
     */
    private String personName;
    /**
     * 标题
     */
    private String label;
    /**
     * 值
     */
    private String value;
    /**
     * 排序
     */
    private Long orderNo;
    /**
     * 更新时间
     */
    private Long updateAt;

    public PersonInfoNode() {
    }

    public PersonInfoNode(String structId, String parentId, String personId, String personName, String label, String value, Long order) {
        this.structId = structId;
        this.parentId = parentId;
        this.personId = personId;
        this.personName = personName;
        this.label = label;
        this.value = value;
        this.orderNo = order;
        this.updateAt = System.currentTimeMillis();
        this.id = UUIDGenerator.getId();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getOrder() {
        return orderNo;
    }

    public void setOrder(Long order) {
        this.orderNo = order;
    }

    public Long getUpdateAt() {
        return updateAt;
    }

    public String getStructId() {
        return structId;
    }

    public void setStructId(String structId) {
        this.structId = structId;
    }

    public void setUpdateAt(Long updateAt) {
        this.updateAt = updateAt;
    }
}
